-- GENERATED SPELL FOR [7th Legion Elite] --


function spell0_27713(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(62312,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27713', 2341, 1)
end

function spell1_27713(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(50092,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27713', 613, 1)
end

function Sorts_27713(pUnit, Event)
local choix_sorts_27713 = math.random(0, 1)
if choix_sorts_27713 == 0 then
pUnit:RegisterEvent('spell0_27713', 1, 1)
end
if choix_sorts_27713 == 1 then
pUnit:RegisterEvent('spell1_27713', 1, 1)
end
end

function mob27713_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27713', math.random(1500, 3000), 1)
end

function mob27713_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27713_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27713_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27713, 1, 'mob27713_Action')
RegisterUnitEvent(27713, 2, 'mob27713_Leave')
RegisterUnitEvent(27713, 3, 'mob27713_Kill')
RegisterUnitEvent(27713, 4, 'mob27713_Die')
